home *** CD-ROM | disk | FTP | other *** search
- Path: news.magi.com!news!news.magi.com
- From: nredding@magi.com (Neil Redding)
- Newsgroups: comp.lang.c
- Subject: Re: GoTo equivalent in C ??
- Date: Sat, 13 Jan 1996 19:28:44 -0500
- Organization: Magi Data Consulting
- Message-ID: <nredding-1301961928440001@magi04p17.magi.com>
- References: <4d67vm$e5h@masala.cc.uh.edu>
- NNTP-Posting-Host: magi04p17.magi.com
-
- In article <4d67vm$e5h@masala.cc.uh.edu>, sukku@menudo.uh.edu (sukumar) wrote:
-
- >Hi,
- > I have always thought about this. How do you get the effect of goto
- >in C without using "goto"?? For ex, if I have to check for an error in my
- >function for every computation I do, and then do some cleaning up, how do
- >I do it. Here is an example:
- >
- Although no one likes to use goto, I think in this case where you want to
- have an error
- exit from deeply nested code you may as well go ahead and use it.
-
- --
- Neil Redding
- Ottawa, Canada
-